Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 14 - Shader Objects / Shader Objects Reference
Shader Objects Routines / Managing Illumination Shaders


Q3IlluminationShader_GetType

You can use the Q3IlluminationShader_GetType function to get the type of an illumination shader.

TQ3ObjectType Q3IlluminationShader_GetType (
TQ3ShaderObject shader);
shader
An illumination shader.
DESCRIPTION
The Q3IlluminationShader_GetType function returns, as its function result, the type of the illumination shader specified by the shader parameter. The types of illumination shaders currently supported by QuickDraw 3D are defined by these constants:

kQ3IlluminationTypeLambert
kQ3IlluminationTypePhong
kQ3IlluminationTypeNULL
If the specified illumination shader is invalid or is not one of these types, Q3IlluminationShader_GetType returns the value kQ3ObjectTypeInvalid.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996